package com.data.modules.online.cgform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;

@TableName("onl_cgform_head")
public class OnlCgformHead implements Serializable {
    private static final long serialVersionUID = 1;
    private Integer copyType;
    private Integer copyVersion;
    private String createBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private String desFormCode;
    private String extConfigJson;
    /**
     *  表单分类
     */
    private String formCategory;
    private String formTemplate;
    private String formTemplateMobile;
    private transient Integer hascopy;
    @TableId(type = IdType.ASSIGN_UUID)

    private String id;
    private String idSequence;
    /**
     *  主键策略
     */
    private String idType;
    /**
     *  显示复选框
     */
    private String isCheckbox;
    private String isDbSynch;
    private String isDesForm;
    /**
     *  是否分页 N Y
     */
    private String isPage;
    /**
     *  是否树
     */
    private String isTree;
    private String lowAppId;
    private String physicId;
    private String queryMode;
    private Integer relationType;
    /**
     *  滚动条
     */
    private Integer scroll;
    private String subTableStr;
    private Integer tabOrderNum;
    /**
     *  表名
     */
    private String tableName;
    /**
     *  表描述
     */
    private String tableTxt;
    /**
     *  表类型
     */
    private Integer tableType;
    private Integer tableVersion;
    private transient String taskId;
    /**
     *  主题模板
     */
    private String themeTemplate;
    private String treeFieldname;
    private String treeIdField;
    private String treeParentIdField;
    private String updateBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


    public boolean canEqual(Object other) {
        return other instanceof OnlCgformHead;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof OnlCgformHead)) {
            return false;
        }
        OnlCgformHead onlCgformHead = (OnlCgformHead) o;
        if (!onlCgformHead.canEqual(this)) {
            return false;
        }
        Integer tableType2 = getTableType();
        Integer tableType3 = onlCgformHead.getTableType();
        if (tableType2 != null ? !tableType2.equals(tableType3) : tableType3 != null) {
            return false;
        }
        Integer tableVersion2 = getTableVersion();
        Integer tableVersion3 = onlCgformHead.getTableVersion();
        if (tableVersion2 != null ? !tableVersion2.equals(tableVersion3) : tableVersion3 != null) {
            return false;
        }
        Integer relationType2 = getRelationType();
        Integer relationType3 = onlCgformHead.getRelationType();
        if (relationType2 != null ? !relationType2.equals(relationType3) : relationType3 != null) {
            return false;
        }
        Integer tabOrderNum2 = getTabOrderNum();
        Integer tabOrderNum3 = onlCgformHead.getTabOrderNum();
        if (tabOrderNum2 != null ? !tabOrderNum2.equals(tabOrderNum3) : tabOrderNum3 != null) {
            return false;
        }
        Integer copyType2 = getCopyType();
        Integer copyType3 = onlCgformHead.getCopyType();
        if (copyType2 != null ? !copyType2.equals(copyType3) : copyType3 != null) {
            return false;
        }
        Integer copyVersion2 = getCopyVersion();
        Integer copyVersion3 = onlCgformHead.getCopyVersion();
        if (copyVersion2 != null ? !copyVersion2.equals(copyVersion3) : copyVersion3 != null) {
            return false;
        }
        Integer scroll2 = getScroll();
        Integer scroll3 = onlCgformHead.getScroll();
        if (scroll2 != null ? !scroll2.equals(scroll3) : scroll3 != null) {
            return false;
        }
        String id = getId();
        String id2 = onlCgformHead.getId();
        if (id != null ? !id.equals(id2) : id2 != null) {
            return false;
        }
        String tableName2 = getTableName();
        String tableName3 = onlCgformHead.getTableName();
        if (tableName2 != null ? !tableName2.equals(tableName3) : tableName3 != null) {
            return false;
        }
        String tableTxt2 = getTableTxt();
        String tableTxt3 = onlCgformHead.getTableTxt();
        if (tableTxt2 != null ? !tableTxt2.equals(tableTxt3) : tableTxt3 != null) {
            return false;
        }
        String isCheckbox2 = getIsCheckbox();
        String isCheckbox3 = onlCgformHead.getIsCheckbox();
        if (isCheckbox2 != null ? !isCheckbox2.equals(isCheckbox3) : isCheckbox3 != null) {
            return false;
        }
        String isDbSynch2 = getIsDbSynch();
        String isDbSynch3 = onlCgformHead.getIsDbSynch();
        if (isDbSynch2 != null ? !isDbSynch2.equals(isDbSynch3) : isDbSynch3 != null) {
            return false;
        }
        String isPage2 = getIsPage();
        String isPage3 = onlCgformHead.getIsPage();
        if (isPage2 != null ? !isPage2.equals(isPage3) : isPage3 != null) {
            return false;
        }
        String isTree2 = getIsTree();
        String isTree3 = onlCgformHead.getIsTree();
        if (isTree2 != null ? !isTree2.equals(isTree3) : isTree3 != null) {
            return false;
        }
        String idSequence2 = getIdSequence();
        String idSequence3 = onlCgformHead.getIdSequence();
        if (idSequence2 != null ? !idSequence2.equals(idSequence3) : idSequence3 != null) {
            return false;
        }
        String idType2 = getIdType();
        String idType3 = onlCgformHead.getIdType();
        if (idType2 != null ? !idType2.equals(idType3) : idType3 != null) {
            return false;
        }
        String queryMode2 = getQueryMode();
        String queryMode3 = onlCgformHead.getQueryMode();
        if (queryMode2 != null ? !queryMode2.equals(queryMode3) : queryMode3 != null) {
            return false;
        }
        String subTableStr2 = getSubTableStr();
        String subTableStr3 = onlCgformHead.getSubTableStr();
        if (subTableStr2 != null ? !subTableStr2.equals(subTableStr3) : subTableStr3 != null) {
            return false;
        }
        String treeParentIdField2 = getTreeParentIdField();
        String treeParentIdField3 = onlCgformHead.getTreeParentIdField();
        if (treeParentIdField2 != null ? !treeParentIdField2.equals(treeParentIdField3) : treeParentIdField3 != null) {
            return false;
        }
        String treeIdField2 = getTreeIdField();
        String treeIdField3 = onlCgformHead.getTreeIdField();
        if (treeIdField2 != null ? !treeIdField2.equals(treeIdField3) : treeIdField3 != null) {
            return false;
        }
        String treeFieldname2 = getTreeFieldname();
        String treeFieldname3 = onlCgformHead.getTreeFieldname();
        if (treeFieldname2 != null ? !treeFieldname2.equals(treeFieldname3) : treeFieldname3 != null) {
            return false;
        }
        String formCategory2 = getFormCategory();
        String formCategory3 = onlCgformHead.getFormCategory();
        if (formCategory2 != null ? !formCategory2.equals(formCategory3) : formCategory3 != null) {
            return false;
        }
        String formTemplate2 = getFormTemplate();
        String formTemplate3 = onlCgformHead.getFormTemplate();
        if (formTemplate2 != null ? !formTemplate2.equals(formTemplate3) : formTemplate3 != null) {
            return false;
        }
        String themeTemplate2 = getThemeTemplate();
        String themeTemplate3 = onlCgformHead.getThemeTemplate();
        if (themeTemplate2 != null ? !themeTemplate2.equals(themeTemplate3) : themeTemplate3 != null) {
            return false;
        }
        String formTemplateMobile2 = getFormTemplateMobile();
        String formTemplateMobile3 = onlCgformHead.getFormTemplateMobile();
        if (formTemplateMobile2 != null ? !formTemplateMobile2.equals(formTemplateMobile3) : formTemplateMobile3 != null) {
            return false;
        }
        String extConfigJson2 = getExtConfigJson();
        String extConfigJson3 = onlCgformHead.getExtConfigJson();
        if (extConfigJson2 != null ? !extConfigJson2.equals(extConfigJson3) : extConfigJson3 != null) {
            return false;
        }
        String updateBy2 = getUpdateBy();
        String updateBy3 = onlCgformHead.getUpdateBy();
        if (updateBy2 != null ? !updateBy2.equals(updateBy3) : updateBy3 != null) {
            return false;
        }
        Date updateTime2 = getUpdateTime();
        Date updateTime3 = onlCgformHead.getUpdateTime();
        if (updateTime2 != null ? !updateTime2.equals(updateTime3) : updateTime3 != null) {
            return false;
        }
        String createBy2 = getCreateBy();
        String createBy3 = onlCgformHead.getCreateBy();
        if (createBy2 != null ? !createBy2.equals(createBy3) : createBy3 != null) {
            return false;
        }
        Date createTime2 = getCreateTime();
        Date createTime3 = onlCgformHead.getCreateTime();
        if (createTime2 != null ? !createTime2.equals(createTime3) : createTime3 != null) {
            return false;
        }
        String physicId2 = getPhysicId();
        String physicId3 = onlCgformHead.getPhysicId();
        if (physicId2 != null ? !physicId2.equals(physicId3) : physicId3 != null) {
            return false;
        }
        String isDesForm2 = getIsDesForm();
        String isDesForm3 = onlCgformHead.getIsDesForm();
        if (isDesForm2 != null ? !isDesForm2.equals(isDesForm3) : isDesForm3 != null) {
            return false;
        }
        String desFormCode2 = getDesFormCode();
        String desFormCode3 = onlCgformHead.getDesFormCode();
        if (desFormCode2 != null ? !desFormCode2.equals(desFormCode3) : desFormCode3 != null) {
            return false;
        }
        String lowAppId2 = getLowAppId();
        String lowAppId3 = onlCgformHead.getLowAppId();
        if (lowAppId2 == null) {
            if (lowAppId3 == null) {
                return true;
            }
        } else if (lowAppId2.equals(lowAppId3)) {
            return true;
        }
        return false;
    }

    @Override
    public int hashCode() {
        int i = 43;
        Integer tableType2 = getTableType();
        int hashCode = tableType2 == null ? 43 : tableType2.hashCode();
        Integer tableVersion2 = getTableVersion();
        int i2 = (hashCode + 59) * 59;
        int hashCode2 = tableVersion2 == null ? 43 : tableVersion2.hashCode();
        Integer relationType2 = getRelationType();
        int i3 = (hashCode2 + i2) * 59;
        int hashCode3 = relationType2 == null ? 43 : relationType2.hashCode();
        Integer tabOrderNum2 = getTabOrderNum();
        int i4 = (hashCode3 + i3) * 59;
        int hashCode4 = tabOrderNum2 == null ? 43 : tabOrderNum2.hashCode();
        Integer copyType2 = getCopyType();
        int i5 = (hashCode4 + i4) * 59;
        int hashCode5 = copyType2 == null ? 43 : copyType2.hashCode();
        Integer copyVersion2 = getCopyVersion();
        int i6 = (hashCode5 + i5) * 59;
        int hashCode6 = copyVersion2 == null ? 43 : copyVersion2.hashCode();
        Integer scroll2 = getScroll();
        int i7 = (hashCode6 + i6) * 59;
        int hashCode7 = scroll2 == null ? 43 : scroll2.hashCode();
        String id = getId();
        int i8 = (hashCode7 + i7) * 59;
        int hashCode8 = id == null ? 43 : id.hashCode();
        String tableName2 = getTableName();
        int i9 = (hashCode8 + i8) * 59;
        int hashCode9 = tableName2 == null ? 43 : tableName2.hashCode();
        String tableTxt2 = getTableTxt();
        int i10 = (hashCode9 + i9) * 59;
        int hashCode10 = tableTxt2 == null ? 43 : tableTxt2.hashCode();
        String isCheckbox2 = getIsCheckbox();
        int i11 = (hashCode10 + i10) * 59;
        int hashCode11 = isCheckbox2 == null ? 43 : isCheckbox2.hashCode();
        String isDbSynch2 = getIsDbSynch();
        int i12 = (hashCode11 + i11) * 59;
        int hashCode12 = isDbSynch2 == null ? 43 : isDbSynch2.hashCode();
        String isPage2 = getIsPage();
        int i13 = (hashCode12 + i12) * 59;
        int hashCode13 = isPage2 == null ? 43 : isPage2.hashCode();
        String isTree2 = getIsTree();
        int i14 = (hashCode13 + i13) * 59;
        int hashCode14 = isTree2 == null ? 43 : isTree2.hashCode();
        String idSequence2 = getIdSequence();
        int i15 = (hashCode14 + i14) * 59;
        int hashCode15 = idSequence2 == null ? 43 : idSequence2.hashCode();
        String idType2 = getIdType();
        int i16 = (hashCode15 + i15) * 59;
        int hashCode16 = idType2 == null ? 43 : idType2.hashCode();
        String queryMode2 = getQueryMode();
        int i17 = (hashCode16 + i16) * 59;
        int hashCode17 = queryMode2 == null ? 43 : queryMode2.hashCode();
        String subTableStr2 = getSubTableStr();
        int i18 = (hashCode17 + i17) * 59;
        int hashCode18 = subTableStr2 == null ? 43 : subTableStr2.hashCode();
        String treeParentIdField2 = getTreeParentIdField();
        int i19 = (hashCode18 + i18) * 59;
        int hashCode19 = treeParentIdField2 == null ? 43 : treeParentIdField2.hashCode();
        String treeIdField2 = getTreeIdField();
        int i20 = (hashCode19 + i19) * 59;
        int hashCode20 = treeIdField2 == null ? 43 : treeIdField2.hashCode();
        String treeFieldname2 = getTreeFieldname();
        int i21 = (hashCode20 + i20) * 59;
        int hashCode21 = treeFieldname2 == null ? 43 : treeFieldname2.hashCode();
        String formCategory2 = getFormCategory();
        int i22 = (hashCode21 + i21) * 59;
        int hashCode22 = formCategory2 == null ? 43 : formCategory2.hashCode();
        String formTemplate2 = getFormTemplate();
        int i23 = (hashCode22 + i22) * 59;
        int hashCode23 = formTemplate2 == null ? 43 : formTemplate2.hashCode();
        String themeTemplate2 = getThemeTemplate();
        int i24 = (hashCode23 + i23) * 59;
        int hashCode24 = themeTemplate2 == null ? 43 : themeTemplate2.hashCode();
        String formTemplateMobile2 = getFormTemplateMobile();
        int i25 = (hashCode24 + i24) * 59;
        int hashCode25 = formTemplateMobile2 == null ? 43 : formTemplateMobile2.hashCode();
        String extConfigJson2 = getExtConfigJson();
        int i26 = (hashCode25 + i25) * 59;
        int hashCode26 = extConfigJson2 == null ? 43 : extConfigJson2.hashCode();
        String updateBy2 = getUpdateBy();
        int i27 = (hashCode26 + i26) * 59;
        int hashCode27 = updateBy2 == null ? 43 : updateBy2.hashCode();
        Date updateTime2 = getUpdateTime();
        int i28 = (hashCode27 + i27) * 59;
        int hashCode28 = updateTime2 == null ? 43 : updateTime2.hashCode();
        String createBy2 = getCreateBy();
        int i29 = (hashCode28 + i28) * 59;
        int hashCode29 = createBy2 == null ? 43 : createBy2.hashCode();
        Date createTime2 = getCreateTime();
        int i30 = (hashCode29 + i29) * 59;
        int hashCode30 = createTime2 == null ? 43 : createTime2.hashCode();
        String physicId2 = getPhysicId();
        int i31 = (hashCode30 + i30) * 59;
        int hashCode31 = physicId2 == null ? 43 : physicId2.hashCode();
        String isDesForm2 = getIsDesForm();
        int i32 = (hashCode31 + i31) * 59;
        int hashCode32 = isDesForm2 == null ? 43 : isDesForm2.hashCode();
        String desFormCode2 = getDesFormCode();
        int i33 = (hashCode32 + i32) * 59;
        int hashCode33 = desFormCode2 == null ? 43 : desFormCode2.hashCode();
        String lowAppId2 = getLowAppId();
        int i34 = (hashCode33 + i33) * 59;
        if (lowAppId2 != null) {
            i = lowAppId2.hashCode();
        }
        return i34 + i;
    }

    public void setCopyType(Integer copyType2) {
        this.copyType = copyType2;
    }

    public void setCopyVersion(Integer copyVersion2) {
        this.copyVersion = copyVersion2;
    }

    public void setCreateBy(String createBy2) {
        this.createBy = createBy2;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public void setCreateTime(Date createTime2) {
        this.createTime = createTime2;
    }

    public void setDesFormCode(String desFormCode2) {
        this.desFormCode = desFormCode2;
    }

    public void setExtConfigJson(String extConfigJson2) {
        this.extConfigJson = extConfigJson2;
    }

    public void setFormCategory(String formCategory2) {
        this.formCategory = formCategory2;
    }

    public void setFormTemplate(String formTemplate2) {
        this.formTemplate = formTemplate2;
    }

    public void setFormTemplateMobile(String formTemplateMobile2) {
        this.formTemplateMobile = formTemplateMobile2;
    }

    public void setHascopy(Integer hascopy2) {
        this.hascopy = hascopy2;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setIdSequence(String idSequence2) {
        this.idSequence = idSequence2;
    }

    public void setIdType(String idType2) {
        this.idType = idType2;
    }

    public void setIsCheckbox(String isCheckbox2) {
        this.isCheckbox = isCheckbox2;
    }

    public void setIsDbSynch(String isDbSynch2) {
        this.isDbSynch = isDbSynch2;
    }

    public void setIsDesForm(String isDesForm2) {
        this.isDesForm = isDesForm2;
    }

    public void setIsPage(String isPage2) {
        this.isPage = isPage2;
    }

    public void setIsTree(String isTree2) {
        this.isTree = isTree2;
    }

    public void setLowAppId(String lowAppId2) {
        this.lowAppId = lowAppId2;
    }

    public void setPhysicId(String physicId2) {
        this.physicId = physicId2;
    }

    public void setQueryMode(String queryMode2) {
        this.queryMode = queryMode2;
    }

    public void setRelationType(Integer relationType2) {
        this.relationType = relationType2;
    }

    public void setScroll(Integer scroll2) {
        this.scroll = scroll2;
    }

    public void setSubTableStr(String subTableStr2) {
        this.subTableStr = subTableStr2;
    }

    public void setTabOrderNum(Integer tabOrderNum2) {
        this.tabOrderNum = tabOrderNum2;
    }

    public void setTableName(String tableName2) {
        this.tableName = tableName2;
    }

    public void setTableTxt(String tableTxt2) {
        this.tableTxt = tableTxt2;
    }

    public void setTableType(Integer tableType2) {
        this.tableType = tableType2;
    }

    public void setTableVersion(Integer tableVersion2) {
        this.tableVersion = tableVersion2;
    }

    public void setTaskId(String taskId2) {
        this.taskId = taskId2;
    }

    public void setThemeTemplate(String themeTemplate2) {
        this.themeTemplate = themeTemplate2;
    }

    public void setTreeFieldname(String treeFieldname2) {
        this.treeFieldname = treeFieldname2;
    }

    public void setTreeIdField(String treeIdField2) {
        this.treeIdField = treeIdField2;
    }

    public void setTreeParentIdField(String treeParentIdField2) {
        this.treeParentIdField = treeParentIdField2;
    }

    public void setUpdateBy(String updateBy2) {
        this.updateBy = updateBy2;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public void setUpdateTime(Date updateTime2) {
        this.updateTime = updateTime2;
    }

    @Override
    public String toString() {
        return "OnlCgformHead(id=" + getId() + ", tableName=" + getTableName() + ", tableType=" + getTableType() + ", tableVersion=" + getTableVersion() + ", tableTxt=" + getTableTxt() + ", isCheckbox=" + getIsCheckbox() + ", isDbSynch=" + getIsDbSynch() + ", isPage=" + getIsPage() + ", isTree=" + getIsTree() + ", idSequence=" + getIdSequence() + ", idType=" + getIdType() + ", queryMode=" + getQueryMode() + ", relationType=" + getRelationType() + ", subTableStr=" + getSubTableStr() + ", tabOrderNum=" + getTabOrderNum() + ", treeParentIdField=" + getTreeParentIdField() + ", treeIdField=" + getTreeIdField() + ", treeFieldname=" + getTreeFieldname() + ", formCategory=" + getFormCategory() + ", formTemplate=" + getFormTemplate() + ", themeTemplate=" + getThemeTemplate() + ", formTemplateMobile=" + getFormTemplateMobile() + ", extConfigJson=" + getExtConfigJson() + ", updateBy=" + getUpdateBy() + ", updateTime=" + getUpdateTime() + ", createBy=" + getCreateBy() + ", createTime=" + getCreateTime() + ", copyType=" + getCopyType() + ", copyVersion=" + getCopyVersion() + ", physicId=" + getPhysicId() + ", hascopy=" + getHascopy() + ", scroll=" + getScroll() + ", taskId=" + getTaskId() + ", isDesForm=" + getIsDesForm() + ", desFormCode=" + getDesFormCode() + ", lowAppId=" + getLowAppId() + ")";
    }

    public String getId() {
        return this.id;
    }

    public String getTableName() {
        return this.tableName;
    }

    public Integer getTableType() {
        return this.tableType;
    }

    public Integer getTableVersion() {
        return this.tableVersion;
    }

    public String getTableTxt() {
        return this.tableTxt;
    }

    public String getIsCheckbox() {
        return this.isCheckbox;
    }

    public String getIsDbSynch() {
        return this.isDbSynch;
    }

    public String getIsPage() {
        return this.isPage;
    }

    public String getIsTree() {
        return this.isTree;
    }

    public String getIdSequence() {
        return this.idSequence;
    }

    public String getIdType() {
        return this.idType;
    }

    public String getQueryMode() {
        return this.queryMode;
    }

    public Integer getRelationType() {
        return this.relationType;
    }

    public String getSubTableStr() {
        return this.subTableStr;
    }

    public Integer getTabOrderNum() {
        return this.tabOrderNum;
    }

    public String getTreeParentIdField() {
        return this.treeParentIdField;
    }

    public String getTreeIdField() {
        return this.treeIdField;
    }

    public String getTreeFieldname() {
        return this.treeFieldname;
    }

    public String getFormCategory() {
        return this.formCategory;
    }

    public String getFormTemplate() {
        return this.formTemplate;
    }

    public String getThemeTemplate() {
        return this.themeTemplate;
    }

    public String getFormTemplateMobile() {
        return this.formTemplateMobile;
    }

    public String getExtConfigJson() {
        return this.extConfigJson;
    }

    public String getUpdateBy() {
        return this.updateBy;
    }

    public Date getUpdateTime() {
        return this.updateTime;
    }

    public String getCreateBy() {
        return this.createBy;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public Integer getCopyType() {
        return this.copyType;
    }

    public Integer getCopyVersion() {
        return this.copyVersion;
    }

    public String getPhysicId() {
        return this.physicId;
    }

    public Integer getHascopy() {
        return this.hascopy;
    }

    public Integer getScroll() {
        return this.scroll;
    }

    public String getTaskId() {
        return this.taskId;
    }

    public String getIsDesForm() {
        return this.isDesForm;
    }

    public String getDesFormCode() {
        return this.desFormCode;
    }

    public String getLowAppId() {
        return this.lowAppId;
    }
}
